import configparser
import jsonpath


def read_config(config_path) -> dict:
    cfg_dict = {}

    config = configparser.ConfigParser()
    config.read(config_path)
    title_li = config.sections()
    for i in title_li:
        temp_dict = {}
        for s in config.items(i):
            temp_dict[s[0]] = s[1]

            cfg_dict[i] = temp_dict
    print(cfg_dict)

    return cfg_dict

